package cn.bklovezz.yixiantong.ram.base;

import cn.bklovezz.yixiantong.ram.constant.ResponseMessage;
import cn.bklovezz.yixiantong.ram.constant.StatusCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReturnResult <T> {
  /**
   * @description 状态码
   */
  private Integer code; /* = StatusCode.Success(0).getCode() */

  /**
   * @description 返回的信息 (从 ResponseMessage.Xxx 中获取)
   */
  private String message; /* = ResponseMessage.Success(0).getMessage() */

  /**
   * @description 返回的数据
   */
  private T data;
}
